<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>系统管理</title>
  {include file="common/_require"}

  <script>
    var currentHeaderNavItem = 'System';
    var currentLeftNavItem = 'power';
  </script>
  <style>
    .layui-form-pane .layui-form-label {
      width: 160px
    }

    .layui-form-pane .layui-input-block {
      margin-left: 160px;
    }
  </style>
</head>

<body class="layui-layout-body">

  <div class="layui-layout layui-layout-admin">
    {include file="common/_header"}

    {include file="common/left_system"}

    <div class="layui-body">

      <div style="padding:15px">
        <div class="main-header">
          <span class="layui-breadcrumb">
            <a>首页</a>
            <a><cite>第三方管理</cite></a>
          </span>
        </div>
        <div class="main-container">
          <div class="layui-row">

            <div class="layui-col-md6">
              <fieldset class="layui-elem-field ">
                <legend>账号验证</legend>
                <div class="layui-field-box">
                  <form class="layui-form layui-form-pane" action="{:url('admin/System/update')}" lay-filter="*" method="post">
                    <div class="layui-form-item">
                      <div class="layui-form-label">邮箱必须激活</div>
                      <div class="layui-input-block">
                        <input type="radio" name="user_email_must" value="closed" title="关闭邮箱验证" class="layui-input">
                        <input type="radio" name="user_email_must" value="enabled" title="可选激活" class="layui-input">
                        <input type="radio" name="user_email_must" value="must" title="必须激活" class="layui-input">
                      </div>
                    </div>

                    <div class="layui-form-item">
                      <button class="layui-btn layui-btn-fluid">保存</button>
                    </div>
                  </form>
                </div>
              </fieldset>
              <fieldset class="layui-elem-field ">
                <legend>文章审核</legend>
                <div class="layui-field-box">
                  <form class="layui-form" action="{:url('admin/System/update')}" lay-filter="*" method="post">
                    <div class="layui-form-item">
                      <div class="layui-form-label">发表文章是否需要审核</div>
                      <div class="layui-input-block">
                        <input type="radio" name="post_verify_required" value="no" title="无需审核" class="layui-input">
                        <input type="radio" name="post_verify_required" value="required" title="必须审核" class="layui-input">
                      </div>
                    </div>

                    <div class="layui-form-item">
                      <button class="layui-btn layui-btn-fluid">保存</button>
                    </div>
                  </form>
                </div>
              </fieldset>

            </div>
          </div>

        </div>
      </div>


      {include file="common/_footer"}
    </div>
    <script>
      layui.use(['layer', 'form'], function () {
        var layer = layui.layer;
        var form = layui.form;

        form.val('*', {
          user_email_must: '{:get_system_config("user_email_must")}',
          post_verify_required: '{:get_system_config("post_verify_required")}',
        })

      })
    </script>
</body>

</html>